{include file="header.html"}
<script type="text/javascript">
    $(function () {
        $('#not_before').datepicker({dateFormat: 'yy-mm-dd'});
        $('#not_after').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<div id="rightTop">
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=promotional_activity&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $list}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall"/></td>
            <td class="table-center">ID</td>
            <td class="table-center"><span ectype="order_by" fieldname="banner_url">主图</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="start_time">开始时间</span></td>
            <td class="table-center"><span ectype="order_by" fieldname="end_time">结束时间</span></td>
            <td class="table-center"><span ectype="order">活动模块</span></td>
            <td class="table-center">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$list item=v}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$v.activity_id}"/></td>
            <td class="table-center">{$v.activity_id|escape}</td>
            <td class="table-center"><img  height="100" width="120" src="{$v.banner_url}" /></td>
            <td class="table-center">{$v.start_time||date:Y-m-d H:i:s}</td>
            <td class="table-center">{$v.end_time||date:Y-m-d H:i:s}</td>
                <td class="table-center">
                    <!--{foreach from=$v.groupList item=g}-->
                        <img  height="100" width="120"  src="{$g.group_url}" />
                    <a href="index.php?app=promotional_activity&amp;act=view_group&amp;activity_group_id={$g.activity_group_id}">编辑</a> |
                    <a href="javascript:drop_confirm('您确认要删除么？', 'index.php?app=promotional_activity&amp;act=drop&amp;activity_group_id={$g.activity_group_id}');
             ">删除</a><br/>
                    <!--{foreachelse}-->
                        无
                    <!--{/foreach}-->
                </td>
            <td class="table-center">
                <a href="index.php?app=promotional_activity&amp;act=add_group&amp;activity_id={$v.activity_id}">添加模块</a>     |
                <a href="index.php?app=promotional_activity&amp;act=view&amp;activity_id={$v.activity_id}"
                >编辑</a>   |
                <a href="javascript:drop_confirm('您确认要删除么？', 'index.php?app=promotional_activity&amp;act=drop&amp;activity_id={$v.activity_id}');">{$lang.drop}</a>

            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="12">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $coupon_codes_list}-->
    <div id="dataFuncs">
        <div class="pageLinks">{include file=page.bottom.html}</div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->

</div>
{include file="footer.html"}